<?php

/**
 * 前台的单入口文件
 */
//定义基础的目录全局常量
define("ROOT_PATH", getcwd()."/");
define("APPLICATION", ROOT_PATH."Application/");
define("FRAMEWORK", ROOT_PATH."Framework/");



//获取传值参数
$controller = isset($_GET["c"])?$_GET["c"]: "equipment";

$action = isset($_GET["a"])?$_GET["a"]:"isLogin";

define("CONTROLLER", $controller);
define("ACTION", $action);
define("GROUP", "Back");

//引入自动加载文件
require_once FRAMEWORK."autoload.php";


$controllerName = $controller."Controller";

$controller = new $controllerName();

$controller->$action();

